import App from '../App'
import Home from '../views/home/home.vue'
import Login from '../views/login/login.vue'
import index from '../views/index/index.vue'

export default [
  {
    path: '/',
    component: App, // 顶层路由，对应index.html
    children: [
      //二级路由，对应App.vue
      // 地址为空时跳转至home页面
      {
        path: '',
        redirect: '/home',
      },
      {
        path: '/home',
        component: Home,
		children: [
			{
			  path: '',
			  redirect: '/index',
			},
			{
			  path: '/index',
			  component: index,
			}
			
		]
      },
      // 登录注册页面
      {
        path: '/login',
        component: Login,
      },
	  
    ],
  },
  
]
